justfile: Add a target to iterate on container unit tests quickly
authorColin Walters <walters@verbum.org>
Tue, 22 Jul 2025 21:16:39 +0000 (17:16 -0400)
committerColin Walters <walters@verbum.org>
Tue, 22 Jul 2025 21:16:39 +0000 (17:16 -0400)
We need to split these into two container builds probably...

Justfile

index 2456c2b6cf8231885a0d9b3a32dc596780f67768..d46f6c0fc91eccac0e8d1b2b38add80c2acd07d4 100644 (file)
--- a/Justfile
+++ b/Justfile
@@ -38,7 +38,10 @@ unitcontainer-build:
 unitcontainer: unitcontainer-build 
     # need cap-add=all for mounting
     podman run --rm --net=none {{unitpriv}} {{unittest_args}} --cap-add=all --env=TEST_CONTAINER=1 localhost/ostree-bintest /tests/run.sh
-    
+# For iterating on the tests
+unitcontainer-fast:
+    podman run --rm --net=none {{unitpriv}} {{unittest_args}} --cap-add=all --env=TEST_CONTAINER=1 -v $(pwd)/tests-unit-container:/tests:ro --security-opt=label=disable localhost/ostree-bintest /tests/run.sh
+
 # Run a build on the host system
 build-host:
     . ci/libbuild.sh && build